package jpb.module.dao.member.mapper;

import jpb.module.daomain.member.LoadMem;
import jpb.module.daomain.member.Member;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by haol on 2017/4/8.
 */
@Component
public interface MemberMapper {

        void complete(@Param("member") Member member);

        void delete(@Param("memberNum") String memberNum);

        void update(@Param("member") Member member);
        void updateTime(@Param("memberNum") String memberNum, @Param("time") String time);


        void deleteMobile(@Param("memberNum") String memberNum);
        void insertMobile(@Param("memberNum") String memberNum,@Param("mobiles") String mobiles);
        List<String> getMobiles(@Param("memberNum") String memberNum);


        Member get(@Param("memberNum") String memberNum);

        Member getMsg(@Param("memberNum") String memberNum);

        Member getDetail(@Param("memberNum") String memberNum, @Param("oid") String oid);

        int getCount(@Param("memberNum") String memberNum);

        int lastId();


        List<Member> getDetailByOid(@Param("oid") String oid);

        List<LoadMem> getDetailByDid(@Param("did") Integer did);


        List<Member> getFollowByOid(@Param("oid") String oid);

        List<Member> getByOid(@Param("oid") String oid);
        List<Member> getByDid(@Param("did") Integer did);

}
